<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var obj = { name:'李煜',age:30, run: ()=>{ console.log('run'); },  };
        // console.log( obj.toString() );
        //hasOwnProperty只在自身找
    //      if(obj.hasOwnProperty('toString')){
    //         //in会沿着原型链找
    //        //if('toString' in obj){
    //         console.log('zai');
    //     }
    // else{
    //     console.log('buzai');
    // }
    //isPrototypeOf()
    if(Array .prototype.isPrototypeOf(Object)){
        console.log('shi');
    }else{
        console.log('bushi');
    }
</script>